﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace FantasyDraft2.Models
{
    public class PlayerEvent
    {
        [Key]
        public int EventId { get; set; }

        public int PlayerId { get; set; }
        public DateTime EventDate { get; set; }
        public int InitialTeamId { get; set; }
        public int FinalTeamId { get; set; }
        public int EventType { get; set; }

        //PlayerEvent has a 1 to 1 relationship with Player [PlayerId is a foreign key that references Player's PlayerId] so a reference to Player must be
        //made in order to communicate. 
        public virtual Player Player { get; set; }
    }
}